/****************************************************
          File Name:10-6.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Tue 23 Dec 2014 04:27:34 PM CST
*****************************************************/

#include<iostream>
#include"10-6.h"

int main()
{
    using std::cout;

    Move mine(1.0309, 0.0309); // implicitly
    Move another(10.01, 10.02);

    cout << "show the orignal 'Move'\n";
    cout << "-------mine-------\n";
    mine.showmove();
    cout << "+++++++another++++++\n";
    another.showmove();

    cout << "add two class 'mine.add(another)'\n";
    mine.add(another);
    cout << "show mine after add: \n";
    mine.showmove();
    cout << "reset two class ('mine' and 'another')\n";
    mine.reset();
    another.reset();
    cout << "show the result:\n";
    cout << "-------mine-------\n";
    mine.showmove();
    cout << "+++++another+++++\n";
    another.showmove();

    return 0;
}
